package com.busines.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class EveryJob {

	
	@Scheduled(cron= "0/5 * * * * ?")
	public void test1(){
		System.out.println("每分钟执行");
	}
//	@Scheduled(fixedDelay= 3*1000)
//	public void test2(){
//		System.out.println("fixedDelay");
//	}
	@Scheduled(fixedRate= 5*1000)
	public void test3(){
		System.out.println("fixedRate");
	}
}
